<html> 
 <head> 
  <title> PHP Binder Installer </title> 
  <LINK HREF="/named.css" TYPE="text/css" REL="stylesheet">
 <script src="js/functions.js" type="text/javascript" language="javascript"></script>
 </head>
<body> 

<center> <h3> Binder Install Step (<?=$step?>) </center>


<?php 
 if($step == 1) {
  $binderUrl  = "http://" . $_SERVER['SERVER_NAME'] . dirname($_SERVER['REQUEST_URI']); 
  $binderPath = dirname($_SERVER['SCRIPT_FILENAME']);  
?>
<center> 
<form action="install.php" method="post">
<input type="hidden" name="step" value="2"> 
<table width="100%" border=0 cellspacing=1> 
<tr> 
 <td align="right"> Company Name </td> <td> <input type="text" size="50" name="CompanyName"> </td> 
</tr>
<tr>
 <td align="right"> Support Email </td> <td> <input type="text" size="50" name="SupportEmail"> </td> 
</tr>
<tr>
 <td align="right"> Server URL <br> 
 (The url people will go to use Binder) </td> 
    <td> <input type="text" size="50" name="BinderUrl" value="<?=$binderUrl?>"> 
</tr>
<tr>
 <td align="right"> Path to Files  <br> 
 (The url people will go to use Binder) </td> 
    <td> <input type="text"  size="50" name="BinderPath" value="<?=$binderPath?>"> 
</tr>

<tr> 
 <td align="right"> MySQL Username </td> <td> <input size="50" type="text" name="myuser"> </td> 
</tr>

<tr> 
 <td align="right"> MySQL Password </td> <td> <input size="50" type="text" name="mypassword"> </td> 
</tr>

<tr> 
 <td align="right"> MySQL Host </td> <td> <input size="50" type="text" name="myhost"> </td> 
</tr>

<tr> 
 <td align="right"> MySQL Database Name </td> <td> <input size="50" type="text" name="mydbname"> </td> 
</tr>
<tr>
 <td align="right"> Create Database ? </td> <td> <input type="checkbox" name="createdb" value="y"> </td> 
</tr> 

<tr>
 <td align="right"> Administrator Email  </td> <td> <input type="text" name="adminuser" size="50"> </td> 
</tr>
<tr>
 <td align="right"> Administrator Password </td> <td> <input type="text" name="adminpass" size="50"> </td> 
</tr>

<tr> 
 <td align="right"> &nbsp;  </td> <td> <input type="submit" value="Install >> "> &middot; <input type="reset">  </td> 
</tr>




</table> 


<?

 }

?> 


 
